package com.xxzuibang.day2;

import java.util.Scanner;

public class Demo9 {
    public static void main(String[] args) {
        printNum();
    }


    private static void printNum() {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个数：");
        int num=sc.nextInt();
        String str=num%2==0?"偶数":"奇数";
        System.out.println("num:"+num+"是"+str);

    }
}
